package EveryDayPractice;

import java.util.Scanner;

public class Practice012 {
        public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            long a = sc.nextLong();
            if(a>100000)
            {
                if(a<=200000)
                {
                   double salary=10000*0.1+(a-100000)*0.075;
                    System.out.println("奖金为 "+salary);
                     return;
                }
                if(a<=400000)
                {
                   double salary=10000*0.1+100000*0.075+(a-200000)*0.05;
                    System.out.println("奖金为"+salary);
                 return;
                }
                if (a<=600000)
                {
                   double salary=10000*0.1+100000*0.075+200000*0.05+(a-400000)*0.03;
                    System.out.println("奖金为"+salary);
return;
                }
                if(a<=1000000)
                {
                 double   salary=10000*0.1+100000*0.075+200000*0.05+200000*0.03+(a-600000)*0.015;
                    System.out.println("奖金为"+salary);
return;
                }
                if(a>1000000)
                {
                  double  salary=10000*0.1+100000*0.075+200000*0.05+200000*0.03+400000*0.015+(a-1000000)*0.01;
                    System.out.println("奖金为"+salary);

                }
            }
            else
            {
               double salary=a*0.1;
                System.out.println("奖金为"+salary);
            }
        }
}
